package Request

type AdvertRequest struct {
	Title string `form:"size:32"`
	Page  int    `form:"page"`
	Size  int    `form:"size"`
	Sort  string `form:"sort"`
}

type AdvertCreateRequest struct {
	Title  string `json:"title" binding:"required"  msg:"标题" structs:"title"`       // structs 用于结构体转map，用于更新使用的map	******
	Href   string `json:"href" binding:"required,url"  msg:"跳转地址" structs:"href"`   // 跳转地址 url 规定必须是一个有效地址
	Images string `json:"images" binding:"required,url"  msg:"图片" structs:"images"` // 图片地址
	IsShow bool   `json:"is_show" binding:"required"  msg:"布尔值" structs:"is_show"`
}

type settingUri struct {
	Name string `uri:"name"` // 需要和路由中的 参数一致
}
type AdvertDelRequest struct {
	Ids []uint `json:"ids"`
}

type AdvertEditRequest struct {
	Id    uint   `uri:"id" binding:"required" msg:"id"`
	Title string `json:"title" binding:"required" msg:"输入名称"`
}
